package com.lagou.task09;

public class Shape {
    private int x;
    private int y;
    public Shape(){

    }
    public Shape(int x,int y) {
        setX(x);
        setY(y);
    }

    public void setX(int x) {
        this.x = x;
    }

    public void setY(int y) {
        this.y = y;
    }

    public int getX() {
        System.out.println("父类的getX方法");
        return x;
    }

    public int getY() {
        return y;
    }

    public void show(){
        System.out.println("x =  " + getX() + "  y = " + getY());
    }
    public void showX(){
        System.out.println("x =  "+getX() );
    }

    public static void test(){
        System.out.println("父类的静态方法");
    }
}
